

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>结果主界面</title>
</head>

<link href="../css/theme.css" rel="stylesheet" type="text/css">

<script type="text/javascript" src="../js/jquery-1.8.3.js"></script>
<script type="text/javascript" src="../js/qm.core.js"></script>
<script type="text/javascript" src="../js/qm.questionnaire.js"></script>
<script type="text/javascript" src="../js/qm.chart.js"></script>
<script type="text/javascript" src="../js/highcharts.js"></script>
<script type="text/javascript">

  function getQueryVariable(variable){
		var query = window.location.search.substring(1);
		var vars = query.split("&");
		for (var i = 0; i < vars.length; i++) {
				var pair = vars[i].split("=");
				if (pair[0] == variable) {
						return pair[1];
				}
		}
		return (undefined);
	}
  var id = getQueryVariable("id");
	$(document).ready(function(){
		//计算frame的高度
		$("#frame").height(window.innerHeight-65);
		$("#back").click(function(){
			window.location.href="./list.html";
		});
		$("#print").click(function(){
			document.getElementsByName('showChartMain')[0].contentWindow.print();
		});
    $("#frame").attr("src","./analysis.html?id="+ id)

	});
</script>

<body style="overflow: auto;height: 87%;">
<div style="background:#595959; height:65px;">
	<a id="back" class="btn btn-primary_Blue" href="javascript:void(0)">返回</a>
	<a class="btn btn-primary_green"  id="print" href='javascript:void(0)' style="margin-right: 27px;">打印</a>
</div>
<iframe scrolling="auto" style="overflow: auto; width: 100%;" id="frame" name="showChartMain"
		src=""
		width="100%" height="100%" frameborder="0" /></iframe>
</html>